import { translate } from '@/utils/i18n'
export const weekList = [
  { value: '1', label: translate('z1') },
  { value: '2', label: translate('z2') },
  { value: '3', label: translate('z3') },
  { value: '4', label: translate('z4') },
  { value: '5', label: translate('z5') },
  { value: '6', label: translate('z6') },
  { value: '7', label: translate('z7') },
  { value: '8', label: translate('z8') }
]
export const rules = {
  name: [
    { required: true, message: translate('tcnameplace'), trigger: 'blur' }
  ],
  mealsType: [
    { required: true, message: translate('tcTypeplace'), trigger: 'change' }
  ],
  nums: [
    { required: true, message: translate('placeInput'), trigger: 'blur' }
  ],
  giveNums: [
    { required: false, message: translate('placeInput'), trigger: 'blur' }
  ],
  indate: [
    { required: true, message: translate('placeIndateNum'), trigger: 'blur' }
  ],
  assignValidTime: [
    { required: true, message: translate('placeChoose'), trigger: 'change' }
  ],
  channel: [
    { required: true, message: translate('placeChoose'), trigger: 'blur' }
  ],
  circulationDay: [
    { required: true, message: translate('placeInput'), trigger: 'blur' }
  ],
  content: [
    { required: true, message: translate('placeInput'), trigger: 'blur' }
  ],
  price: [
    { required: true, message: translate('qsrjgdw'), trigger: 'blur' }
  ],
  discountType: [
    { required: true, message: translate('disCouponTypePlace'), trigger: 'change' }
  ],
  // saleDateStart: [
  //   { required: true, message: '请选择销售时段开始日期时间', trigger: 'change' }
  // ],
  timeSale: [
    { type: 'array', required: true, message: translate('placeSelSaleSecTime'), trigger: 'change' }
  ],
  saleDateEnd: [
    { required: true, message: translate('placeSelSaleEndTime'), trigger: 'change' }
  ],
  checkedVenue: [
    { required: true, message: translate('placechooseVenue'), trigger: 'change' }
  ],
  validityType: [
    { required: true, message: translate('changeIndateTypePlace'), trigger: 'change' }
  ],
  validityTime: [
    { required: true, message: translate('changeIndatePlace'), trigger: 'change' }
  ],
  validityDays: [
    { required: true, message: translate('inputDatePlace'), trigger: 'blur' }
  ]
}

export const mealsTypes = [
  { value: '0', label: translate('mpck') },
  { value: '1', label: translate('mpqxk') },
  { value: '2', label: translate('ydck') },
  { value: '3', label: translate('courseSubCard') },
  { value: '4', label: translate('courseLimitCard') }
]
